package com.shamar.blog.service;

import com.shamar.blog.dto.BlogCategoryExecution;
import com.shamar.blog.entity.BlogCategory;

import java.util.List;

/**
 * @author fxm
 * @date 2020-08-02 22:28
 * @desc 后台博客分类Service
 */
public interface BlogCategoryService {
	/**
	 * 根据BlogCategoryCondition查询用户(用户列表)
	 * @param blogCategoryCondition
	 * @param pageIndex
	 * @param pageSize
	 * @return
	 */
	BlogCategoryExecution getBlogCategoryList(BlogCategory blogCategoryCondition, int pageIndex, int pageSize);

	/**
	 * 根据传入的BlogCategory实体更新相应的记录
	 * @param BlogCategory
	 * @return
	 */
	Integer updateBlogCategory(BlogCategory BlogCategory);

	/**
	 * 查询一级分类
	 * @return
	 */
	List<BlogCategory> selectTopCategory();

	/**
	 * 根据传入的BlogCategory实例插入新分类
	 * @param blogCategory
	 * @return
	 */
	BlogCategoryExecution insertSelective(BlogCategory blogCategory);

	/**
	 * 获得所有博客分类
	 * @return
	 */
	BlogCategoryExecution getAllCategory();

}
